<p><?php pc_echo(pc_message("common.sidebar.account.user", array(pc_variable("commerce.customer")->get("contactName")))) ?></p>
<form method="post" action="dispatcher.php">
    <div class="buttons">
        <input type="hidden" name="targetPage.location" value="<?php pc_echo(pc_variable("targetPage.location")); ?>"/>
        <button type="submit" class="logout" name="controller" value="Commerce/LogOutCustomer"><?php pc_echo(pc_message("common.sidebar.account.logout")); ?></button>
    </div>
</form>